import 'package:myapp/app/data/entities/bw_realtor_model.dart';
import 'package:myapp/app/data/entities/key_value_model.dart';

abstract class DataConvert {

  static toBwRealtorKeyValue(BwRealtor data) {
    final List<KeyValue> list = [];
    list.add(KeyValue(key: '您是否刚考牌经纪', value: data.address));

    return list;
  }

  _getYesOrNo(int? data) {
    return data == null ? "-" : (data == 1);
  }
}